package com.petmagics.learnlayoutanimation;

import android.os.Bundle;
import android.support.v4.app.ListFragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;

/**
 * 使用资源文件配置布局动画  //todo 未成功
 */
public class ResourceAnimationFm extends ListFragment {

    private ArrayAdapter<String> adapter;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View root = inflater.inflate(R.layout.fragment_resource_animation, null);
        adapter = new ArrayAdapter<>(getActivity(), android.R.layout.simple_list_item_1, new String[]{"Hello", "World", "PetMagic"});
        setListAdapter(adapter);

        return root;
    }

}
